package com.buba.system.service.impl;

import com.buba.system.dao.LoginLogDao;
import com.buba.system.dao.impl.LoginLogDaoImpl;
import com.buba.system.pojo.LoginLog;
import com.buba.system.pojo.UserInfo;
import com.buba.system.service.LoginLogService;

import java.util.List;
import java.util.Map;

public class LoginLogServiceImpl implements LoginLogService {
    LoginLogDao loginLogDao = new LoginLogDaoImpl();

    @Override
    public void loginlog(Map<String, String> param, UserInfo userInfo, String ipAddr) {
        loginLogDao.loginlog(param,userInfo,ipAddr);
    }

    @Override
    public void loginlog(Map<String, String> param, String ipAddr) {
        loginLogDao.loginlog(param,ipAddr);
    }

    @Override
    public List<LoginLog> selLogin(Map<String, String> param) {
        return loginLogDao.selLogin(param);
    }

    @Override
    public int delLogin(String loginId) {
        return loginLogDao.delLogin(loginId);
    }

}
